package com.littleHan.brushQuestions.web.start.dao;

import com.littleHan.brushQuestions.web.start.pojo.Role;
import com.littleHan.brushQuestions.web.start.pojo.UserRole;

import java.util.List;

public interface RoleDao {

    List<Role> getRoleById(List<UserRole> list);

    /**
     * 根据角色名字获取其id
     * @param name 角色名字
     * @return
     */
    String getRoleByName(String name);
}
